luci-app-usteer: fix menu showing on login screen
authorZhi-Jun You <[email protected]>
Tue, 30 Sep 2025 02:51:28 +0000 (10:51 +0800)
committerPaul Donald <[email protected]>
Fri, 3 Oct 2025 11:39:41 +0000 (13:39 +0200)
Currently menu entry is always shown even at the login screen.
Fix this by setting acl dependency.

Also fix the indent.

Signed-off-by: Zhi-Jun You <[email protected]>
applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json

index 39ce0ff9d7b7e72b7cc7a9e9273f7ff3a639231a..ffa4c398a67e2b58c00078763444e52e826e9ce4 100644 (file)
@@ -1,10 +1,13 @@
 {
-  "admin/network/usteer": {
-    "title": "Usteer",
-    "order": 80,
-    "action": {
-      "type": "view",
-      "path": "usteer/usteer"
-    }
-  }
+       "admin/network/usteer": {
+               "title": "Usteer",
+               "order": 80,
+               "action": {
+                       "type": "view",
+                       "path": "usteer/usteer"
+               },
+               "depends": {
+                       "acl": [ "luci-app-usteer" ]
+               }
+       }
 }